package com.bbs.core.dao;

import java.util.List;

import com.bbs.core.model.Reply;

public interface ReplyDao {
    int deleteByPrimaryKey(Integer id);
    
    void deleteByTopicId(Integer topicId);
    
    void deleteByPostId(Integer postId);

    int insert(Reply record);

    int insertSelective(Reply record);

    Reply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Reply record);

    int updateByPrimaryKey(Reply record);
    
    List<Reply> selectAllReply();
    
    List<Reply> selectReplyByPostId(Integer postId);
}